<?php
/**
 * 数据权限视图
 * @author tangbl
 *
 */
class DataAccessViewModel extends ViewModel {
	
	public $viewFields = array(
				
			
     'Admin' => array(
     		
     		'id',
     		'_as'  => 'admin',
     		'_type'=> 'left',
      ),
			
     'AdminRole' => array(
     		
     		'company','name','title','outlet',
     		'id'      => 'roleid',
     		'_as'     => 'role',
     		'_on'     => 'admin.role=role.id'
     	)

	);
	
}
?>